import {defineStore} from 'pinia'
import {reqGoodsListApi} from '@/api/goodslist/index'
export const useGoodListStore = defineStore('goodList',{
    state() {
        return {
            goodsList:[]
        }
    },
    actions:{
        async getGoodList(data){
            this.goodsList = await reqGoodsListApi(data)
        }
    }
})